from fastapi import FastAPI, Security

from app.admin.deps import verify_token
from app.admin.routes import login, system
# from app.core.config import settings


def configure_admin_router(app: FastAPI, prefix='/adminapi'):
    """配置管理后台路由"""

    # admin
    app.include_router(login.router, prefix=prefix, tags=["admin login"])
    app.include_router(system.router, dependencies=[Security(verify_token)], prefix=prefix, tags=["admin system"])
    # app.include_router(items.router, prefix=prefix, tags=["admin items"])
